package com.mydomain.Bodega;

import com.mydomain.Bodega.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("invDetalleList")
public class InvDetalleList extends EntityQuery<InvDetalle> {

	private static final String EJBQL = "select invDetalle from InvDetalle invDetalle";

	private static final String[] RESTRICTIONS = {
			"lower(invDetalle.detCodItem) like concat(lower(#{invDetalleList.invDetalle.detCodItem}),'%')",
			"lower(invDetalle.detCodGrupo) like concat(lower(#{invDetalleList.invDetalle.detCodGrupo}),'%')", };

	private InvDetalle invDetalle = new InvDetalle();

	public InvDetalleList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public InvDetalle getInvDetalle() {
		return invDetalle;
	}
}
